@layout("/common/_container.html",{plugins:["ztree"],css:["/assets/modular/frame/user_info.css"],js:["/assets/business/userGrade/userGrade_add.js"]}){

<div class="layui-body-header">
    <span class="layui-body-header-title">添加</span>
</div>
<div class="layui-fluid " style="">
    <div class="layui-card">
        <div class="layui-card-body">
            <form id="userGradeForm" lay-filter="userGradeForm" class="layui-form model-form" style="max-width: 700px;margin: 40px auto;">
                <input name="gradeId" type="hidden"/>
                <div class="layui-form-item">
                    <label class="layui-form-label">名称<span style="color: red;">*</span></label>
                    <div class="layui-input-block">
                        <input id="gradeName" name="gradeName" placeholder="请输入等级名称" type="text" class="layui-input" lay-verify="required" required/>
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">升级所需分数<span style="color: red;">*</span></label>
                    <div class="layui-input-block">
                        <input id="upScore" name="upScore" placeholder="请输入升级所需分数" type="text" class="layui-input" lay-verify="required" required/>
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">等级</label>
                    <div class="layui-input-inline">
                        <select name="level" lay-filter="aihao">
                            <option value=""></option>
                            <option value="1">初级</option>
                            <option value="2">中级</option>
                            <option value="3">高级</option>
                        </select>
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">额外的折扣<span style="color: red;">*</span></label>
                    <div class="layui-input-block">
                        <input id="addRate" name="addRate" placeholder="请输入额外的折扣" type="text" class="layui-input" lay-verify="required" required/>
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">级别图标</label>
                    <div class="layui-text" style="float: left;text-align: center">
                        <div class="user-info-head" id="imgHead">
                            <img id="iconView"/>
                        </div>
                    </div>

                    <input name="icon" id="icon" type="hidden" lay-verify="required"/>
                    <!--<div class="layui-input-block">
                        <input id="icon" name="icon" placeholder="请输入级别图标" type="text" class="layui-input" lay-verify="required" required/>
                    </div>-->
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">下单上级返现折扣<span style="color: red;">*</span></label>
                    <div class="layui-input-block">
                        <input id="payRate1" name="payRate1" placeholder="请输入下单上级返现折扣" type="text" class="layui-input" lay-verify="required" required/>
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">下单第2级上级返现<span style="color: red;">*</span></label>
                    <div class="layui-input-block">
                        <input id="payRate2" name="payRate2" placeholder="请输入下单第2级上级返现" type="text" class="layui-input" lay-verify="required" required/>
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">下单第3级上级返现<span style="color: red;">*</span></label>
                    <div class="layui-input-block">
                        <input id="payRate3" name="payRate3" placeholder="请输入下单第3级上级返现" type="text" class="layui-input" lay-verify="required" required/>
                    </div>
                </div>

                <div class="layui-form-item">
                    <label class="layui-form-label">升级上级返现<span style="color: red;">*</span></label>
                    <div class="layui-input-block">
                        <input id="upRate1" name="upRate1" placeholder="请输入升级上级返现" type="text" class="layui-input" lay-verify="required" required/>
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">升级第二级上级返现<span style="color: red;">*</span></label>
                    <div class="layui-input-block">
                        <input id="upRate2" name="upRate2" placeholder="请输入升级第二级上级返现" type="text" class="layui-input" lay-verify="required" required/>
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">升级第三级上级返现<span style="color: red;">*</span></label>
                    <div class="layui-input-block">
                        <input id="upRate3" name="upRate3" placeholder="请输入升级第三级上级返现" type="text" class="layui-input" lay-verify="required" required/>
                    </div>
                </div>



                <div class="layui-form-item">
                    <div class="layui-input-block">
                        <button class="layui-btn" lay-filter="btnSubmit" lay-submit>&emsp;提交&emsp;</button>
                        <button class="layui-btn layui-btn-primary" type="button" id="backupPage">&emsp;返回&emsp;</button>
                    </div>
                </div>
            </form>
        </div>
    </div>
</div>

@}
